package com.sz.lk.wingsystem.mvp.contract;

import com.sz.lk.wingsystem.bean.TaskResult;
import com.sz.lk.wingsystem.bean.TaskReturnResult;
import com.sz.lk.wingsystem.mvp.BasePresenter;
import com.sz.lk.wingsystem.mvp.BaseView;
import com.sz.lk.wingsystem.mvp.OnNetRequestListener;

/**
 * author : liuke
 * e-mail : 1012459343@qq.com
 * date   : 2020/12/6 18:03
 * desc   :
 * version: 1.0
 */
public interface TaskContract {
    interface Model {
        /**
         * @param code
         * @param listener
         */
        void task(String code, OnNetRequestListener<TaskResult> listener);

        void UploadTaskInfo(String id, String code, double weight, double volume,
                            double length, double width, double height,
                            String estimateChannel, String estimateAddress,
                            OnNetRequestListener<TaskReturnResult> listener);
    }

    interface view extends BaseView {
        /**
         * 登录成功
         *
         * @param bean
         */
        void onTaskSuccess(TaskResult bean);

        void onUploadTaskInfoSuccess(TaskReturnResult taskReturnResult);
    }

    interface Presenter extends BasePresenter<TaskContract.view> {

        void getTask(String code);

        void getUploadTaskInfo(String id, String code, double weight, double volume,
                               double length, double width, double height,
                               String estimateChannel, String estimateAddress);
    }
} 